package com.slkj.shilixiaoyuanapp.data.room.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;

import com.slkj.shilixiaoyuanapp.entity.UserDataBaseEntity;
import com.slkj.shilixiaoyuanapp.entity.UserEntity;

/**
 * Created  on 2018-07-30
 *
 * @author 唐开阔
 * @describe
 */
@Dao
public interface UserDao {
    @Insert
    void insert(UserDataBaseEntity userEntity);

    @Update
    void update(UserDataBaseEntity userEntity);

    @Delete
    void delete(UserDataBaseEntity userEntity);
    @Query("SELECT  * FROM UserDataBaseEntity Limit 1")
    UserDataBaseEntity getUserJson();
}
